package org.boge.sharpdoc.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.boge.sharpdoc.bean.DocCollect;

import java.util.List;

@Mapper
public interface DocCollectDao {
    public List<DocCollect> findAll();

    public List<DocCollect> findByUid(Long phone);

    public Integer addCollect(@Param("phone") Long phone, @Param("docid") Integer docid);

    public Integer deleteCollect(@Param("phone") Long phone, @Param("docid") Integer docid);

    public Boolean findIfCollected(@Param("phone") Long phone, @Param("docid") Integer docid);
}